<!--
 * @Author: zhanggongze
 * @Date: 2022-02-23 15:48:55
 * @LastEditors: zgz
 * @LastEditTime: 2022-02-25 09:56:53
 * @FilePath: \taocan_pdf\src\app\reportpdf\reportpdf.component.html
 * @Description: 
 * Copyright (c) 2022 by 汉吉健康, All Rights Reserved. 
-->
<div nz-row class="hyhead">
    <div nz-col nzSpan="24" class="yl">
        <p>Excel套餐数据导入</p>
        <input id="fl" type="file" (change)="daoru($event)" />
        <label class="b1" nz-button for="fl">导入</label>
    </div>
</div>

<div style="padding: 95px 30px 0 30px;">

    <!-- rowspan合并该列的两个单元格，所以它的下一列将删除一个单元格-->
    <!--colspan合并该行的2个单元格，所以该行删除一个标签-->
    <table class="hy_table">
        <thead>
            <tr>
                <th>检查类别</th>
                <th>检查名称</th>
                <th>检查价格</th>
                <th>检查介绍</th>
            </tr>
        </thead>

        <tbody *ngFor="let item of inputdata;index as i">
            <tr>
                <td [attr.rowspan]="item.rowspan">{{item.name}}</td>
            </tr>
            <tr *ngFor="let o of item.items;">
                <td>{{o.check_name}}</td>
                <td>{{o.check_price}}</td>
                <td width="70%">{{o.check_introduce}}</td>
            </tr>
        </tbody>

        <p *ngIf="inputdata.length===0" class="kong">请导入Excel套餐数据</p>

    </table>
</div>